/**********************************************************************************
 * Copyright (c) 2012 - 2012,  parallel, All right reserved
 * Title: com.adc.parallel.dto  CompletedTaskDto.java 
 * @author shen  shenqiao2012@163.com 
 *  2012-11-21 下午4:35:05 
 *********************************************************************************/


package com.adc.parallel.dto;

import com.adc.parallel.constants.SysConstants;


/**
 * 
 * Description: the dto for completed task info
 * @author shen  shenqiao2012@163.com 
 * @param <T>
 */
public class CompletedTaskDto<T> {
	private String startTime;
	private String completeTime;
	private int result;
	private BaseTaskDto<T> taskDto;
	
	/** 
	 *     
	 */
	public CompletedTaskDto(String startTime,String completeTime,int result,BaseTaskDto<T> taskDto) {
		// TODO Auto-generated constructor stub
		this.startTime=startTime;
		this.completeTime=completeTime;
		this.result=result;
		this.taskDto=taskDto;
	}
	
	/**
	 * Description:  
	 * @see java.lang.Object#toString() 
	 */
	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return SysConstants.getCompleteFormat(startTime, completeTime, result,taskDto.toString());
	}
	/**
	 * @return the startTime
	 */
	public String getStartTime() {
		return startTime;
	}
	/**
	 * @param startTime the startTime to set
	 */
	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}
	/**
	 * @return the completeTime
	 */
	public String getCompleteTime() {
		return completeTime;
	}
	/**
	 * @param completeTime the completeTime to set
	 */
	public void setCompleteTime(String completeTime) {
		this.completeTime = completeTime;
	}
	/**
	 * @return the result
	 */
	public int getResult() {
		return result;
	}
	/**
	 * @param result the result to set
	 */
	public void setResult(int result) {
		this.result = result;
	}
	/**
	 * @return the taskDto
	 */
	public BaseTaskDto<T> getTaskDto() {
		return taskDto;
	}
	/**
	 * @param taskDto the taskDto to set
	 */
	public void setTaskDto(BaseTaskDto<T> taskDto) {
		this.taskDto = taskDto;
	}
	
}
